/**常量：地图配置 */
/**
    ArcGIS 离散瓦片：http://localhost:8080/tilemap/_alllayers/{z}/{y}/{x}.png
    百度深色地图：http://api1.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&udt=20190410&scale=1&ak=8d6c8b8f3749aed6b1aff3aad6f40e37&styles=t%3Awater%7Ce%3Aall%7Cc%3A%23021019%2Ct%3Ahighway%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Ahighway%7Ce%3Ag.s%7Cc%3A%23147a92%2Ct%3Aarterial%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Aarterial%7Ce%3Ag.s%7Cc%3A%230b3d51%2Ct%3Alocal%7Ce%3Ag%7Cc%3A%23000000%2Ct%3Aland%7Ce%3Aall%7Cc%3A%2308304b%2Ct%3Arailway%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Arailway%7Ce%3Ag.s%7Cc%3A%2308304b%2Ct%3Asubway%7Ce%3Ag%7Cl%3A-70%2Ct%3Abuilding%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Aall%7Ce%3Al.t.f%7Cc%3A%23857f7f%2Ct%3Aall%7Ce%3Al.t.s%7Cc%3A%23000000%2Ct%3Abuilding%7Ce%3Ag%7Cc%3A%23022338%2Ct%3Agreen%7Ce%3Ag%7Cc%3A%23062032%2Ct%3Aboundary%7Ce%3Aall%7Cc%3A%231e1c1c%2Ct%3Amanmade%7Ce%3Ag%7Cc%3A%23022338%2Ct%3Apoi%7Ce%3Aall%7Cv%3Aoff%2Ct%3Aall%7Ce%3Al.i%7Cv%3Aoff%2Ct%3Aall%7Ce%3Al.t.f%7Cv%3Aon%7Cc%3A%232da0c6
    百度高清地图（适用手机端）：http://mapor1.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=pl&udt=20170712&scaler=2
    百度高清地图（适用PC端） http://online0.map.bdimg.com/tile/?qt=tile&styles=pl&x={x}&y={y}&z={z};
    百度mapExtent: 12949773,4825000,12969773,4825000
    天地图瓦片：https://t0.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0
    天地图注记: https://t0.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0
    天地图影像: https://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0
 **/
export const MAP_CONFIG: any = {
    // mapExtent : '12949773,4825000,12969773,4825000', // '107.381035,21.552127,109.381035,25.552127',
    mapExtent : '-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892', // '12949773,4825000,12969773,4825000', // '107.381035,21.552127,109.381035,25.552127', '12724605,3559653,12724605,3559653'
    spatialRef : '3857',
    maxZoom: 20,
    initExtent: '12689042.81326175,3560980.500252999,12765202.042887969,3594942.7813921813',
    tileLayers: [{
        mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
        mapServerUrl: 'https://t0.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0',
        layerName : '底图',
        tileType: 2, // 1:esri离散瓦片；2：XYZ瓦片格式
        tile: {
            mapExtent : '-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892',
            tileSize : 256,
            mapResolution : '156543.03392804097,\n' +
                '78271.51696402048,\n' +
                '39135.75848201024,\n' +
                '19567.87924100512,\n' +
                '9783.93962050256,\n' +
                '4891.96981025128,\n' +
                '2445.98490512564,\n' +
                '1222.99245256282,\n' +
                '611.49622628141,\n' +
                '305.748113140705,\n' +
                '152.8740565703525,\n' +
                '76.43702828517625,\n' +
                '38.21851414258813,\n' +
                '19.109257071294063,\n' +
                '9.554628535647032,\n' +
                '4.777314267823516,\n' +
                '2.388657133911758,\n' +
                '1.194328566955879,\n' +
                '0.5971642834779395,\n' +
                '0.29858214173896974',
            spatialRef: 3857,
            spatialType : 1,
            origionPtX : -20037508.342789244 ,
            origionPtY : 20037508.342789244
        }
    }, {
            mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
            mapServerUrl: 'https://t0.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=4992f0274c2d65330692d07b4ee579b0',
            layerName : '底图',
            tileType: 2, // 1:esri离散瓦片；2：XYZ瓦片格式
            tile: {
                mapExtent : '-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892',
                tileSize : 256,
                mapResolution : '156543.03392804097,\n' +
                    '78271.51696402048,\n' +
                    '39135.75848201024,\n' +
                    '19567.87924100512,\n' +
                    '9783.93962050256,\n' +
                    '4891.96981025128,\n' +
                    '2445.98490512564,\n' +
                    '1222.99245256282,\n' +
                    '611.49622628141,\n' +
                    '305.748113140705,\n' +
                    '152.8740565703525,\n' +
                    '76.43702828517625,\n' +
                    '38.21851414258813,\n' +
                    '19.109257071294063,\n' +
                    '9.554628535647032,\n' +
                    '4.777314267823516,\n' +
                    '2.388657133911758,\n' +
                    '1.194328566955879,\n' +
                    '0.5971642834779395,\n' +
                    '0.29858214173896974',
                spatialRef: 3857,
                spatialType : 1,
                origionPtX : -20037508.342789244 ,
                origionPtY : 20037508.342789244
            }
    }
    ]
    // vectorLayers: [{
    //     mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
    //     mapServerUrl: 'http://localhost:4200/assets/map/gx/450000.json',
    //     spatialRef: 4326,
    //     layerName : '行政区域',
    //     vectorType: 'geojson', // geojson;wfs
    //     mapExtent : '107.381035,22.552127,109.381035,24.552127'
    // }, {
    //     mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
    //     mapServerUrl: 'http://localhost:4200/assets/map/gx/450100.json',
    //     spatialRef: 4326,
    //     layerName : '行政区域',
    //     vectorType: 'geojson', // geojson;wfs
    //     mapExtent : '107.381035,22.552127,109.381035,24.552127'
    // }]
};

